package com.example.electricbicycle.po;

public class Vehicle {
    private int id;
    private String brand;
    private String model;
    private String color;
    private double price;
    private int productionYear;
    private String pic;

    // Getters and Setters
    public int getId() { return id; }
    public void setId(int id) { this.id = id; }
    public String getBrand() { return brand; }
    public void setBrand(String brand) { this.brand = brand; }
    public String getModel() { return model; }
    public void setModel(String model) { this.model = model; }
    public String getColor() { return color; }
    public void setColor(String color) { this.color = color; }
    public double getPrice() { return price; }
    public void setPrice(double price) { this.price = price; }
    public int getProductionYear() { return productionYear; }
    public void setProductionYear(int productionYear) { this.productionYear = productionYear; }
    public String getPic() { return pic; }
    public void setPic(String pic) { this.pic = pic; }

    public Vehicle() {
    }

    public Vehicle(int id, String brand, String model, String color, int productionYear, double price, String pic) {
        this.id = id;
        this.brand = brand;
        this.model = model;
        this.color = color;
        this.productionYear = productionYear;
        this.price = price;
        this.pic = pic;
    }

    public String getFullName() {
        return brand + " " + model + " " + color + " (" + productionYear + ")";
    }
}